<?php
namespace app\index\controller;
use think\Request;
use think\Db;
use think\Controller;
/*
*接口控制器
*/
class  Share extends Controller{
    public function index(){
         //f135eaa31c924cf7eca6e3809418993b
         include "static/share/jssdk.php";
         $jssdk = new \JSSDK("wxee893e7f011a305c", "f135eaa31c924cf7eca6e3809418993b");  
         $signPackage = $jssdk->GetSignPackage();  
         /* var_dump($signPackage); */
         $this->assign('signPackage',$signPackage);
         return $this->fetch();
    }
    public function lc(){
         include "static/client.php";
         $jssdk = new \client("a5c","543","127.0.0.1","31253",5,array());  
         $signPackage = $jssdk->execute('help');  
         var_dump($signPackage); 
        /* $this->assign('signPackage',$signPackage); */
        /*  return $this->fetch(); */
    }
    public function down(){
         return $this->fetch();
    }
}
